package com.challenge.smsweb.actionmanage;

import com.challenge.smsbase.Controller.GenericController;
import com.challenge.smsdao.actionmanage.domain.Action;
import com.challenge.smsservice.actionmanage.service.ActionManager;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * YLN
 */
@RestController
@RequestMapping(value = "action")
public class ActionController extends GenericController<Action,Long, ActionManager> {

    ActionManager actionManager;

    /**
     * setActionManager
     * @param actionManager
     */
    @Autowired
    public void setActionManager(ActionManager actionManager){
        this.actionManager = actionManager;
        this.manager = this.actionManager;
    }
}
